<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数字</title>
    <script>
        var n1 = new Number(10);
        var n2 = 100;
        console.log(Number.MAX_VALUE);
        console.log(Number.MIN_VALUE);
        //str转换为num
        var n3 = new String("qdd123");
        console.log(Number(n3));  //对象无法转换为num 则返回Nan
        var n4 = new Date();
        console.log(Number(n4));
    </script>
</head>
<body>

</body>
</html>